/**
 * Map Manager
 * Manage map mecanics
 **/
var MapManager = function() {
	// Game objects
	this.map = null;

	this.init = function() {
		log('*** INIT MAP MANAGER ***');
		this.map = new Map();
		this.map.init(MapConf);
	}

	this.clear = function() {
		this.map.clear();
	}

	this.update = function() {
		this.map.update();
	}

	this.render = function() {
		this.map.render();
	}

	this.getPosition = function(p) {
		return this.map.getPosition(p);
	}

	this.getConf = function() { return this.map.getConf(); }
	this.getCellWidth = function() { return this.map.getCellWidth(); }
	this.getCellHeight = function() { return this.map.getCellHeight(); }

	this.isWalkable = function(p) { return this.map.isWalkable(p); }

	this.getCell = function(p) { return this.map.getCell(p); }
};
